
/**
 * Class Register is a one-dimensional Matrix which will hold the amplitudes of the Quantum 
 * state. 
 * @author Richard Inskip
 *
 */

public class Register extends Matrix {

	
	int sizeofArray;
/**
 * 
 * @param N The number of Qbits.
 */
	public Register(int N) {
		super(1, (int)Math.pow(2,N), 0);
		sizeofArray = (int)Math.pow(2,N);
		m[0][0] = new Complex(1,0);
		for	(int j = 1; j<sizeofArray; j++){
			m[0][j] = new Complex(0,0);
		}


	}

}


